home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / rru_reso.z / rru_reso / slib / X11 / app-defaults.gray / .twmrc next >
Encoding:
Text File  |  1994-09-26  |  11.6 KB  |  449 lines

  1. #**********************************************************************
  2. #
  3. #    .twmrc-meo - Miles' twm 5 startup file (with mwm look)
  4. #
  5. #    Copyright 1993, Pencom Software, Austin, TX.
  6. #
  7. #    Tab stops should be 3; try :set ts=3 in vi if things don't line up
  8. #
  9. #    Every settable resource in the version of twm we ship is represented
  10. #    herein.  Many are currently deactivated via a '#' at the beginning of
  11. #
  12. #    Most of twm's variable settings are listed at the end of this
  13. #    file - these are the most commonly used.
  14. #
  15. BorderWidth                5
  16. TitleFont                "-*-courier-medium-r-normal--*-140-*-*-*-*-*-*"
  17. MenuFont                    "-*-courier-bold-o-normal--*-180-*-*-*-*-*-*"
  18. IconFont                    "9x15"
  19. ResizeFont                "-*-courier-bold-r-normal--*-180-*-*-*-*-*-*"
  20. #DontMoveOff
  21. #NoRaiseOnDeiconify
  22. NoRaiseOnMove
  23. #NoRaiseOnResize
  24. #NoTitleFocus
  25. RandomPlacement        # no user intervention required for new windows
  26. WarpCursor
  27. #Zoom
  28.  
  29. #    the BorderTile FG & BG are the same - make them different for tiled borders
  30.  
  31. Color
  32. {
  33.     BorderColor                    "DimGray"    # optional window list
  34.     BorderTileBackground        "LightGray"    # optional window list
  35.     BorderTileForeground        "LightGray"    # optional window list
  36.     DefaultBackground            "LightGray"
  37.     DefaultForeground            "Black"
  38.     IconBackground                "LightGray"    # optional window list
  39.     IconBorderColor            "DimGray"    # optional window list
  40.     IconForeground                "Black"        # optional window list
  41.     IconManagerBackground    "LightGray"    # optional window list
  42.     IconManagerForeground    "Black"        # optional window list
  43.     IconManagerHighlight        "DimGray"    # optional window list
  44.     MenuBackground                "LightGray"
  45.     MenuForeground                "DimGray"
  46.     MenuShadowColor            "Black"
  47.     MenuTitleBackground        "LightGray"
  48.     MenuTitleForeground        "DimGray"
  49.     TitleBackground            "LightGray"        # optional window list
  50.     TitleForeground            "DimGray"        # optional window list
  51. }
  52.  
  53. Monochrome
  54. {
  55.     BorderColor                    "White"
  56.     BorderTileBackground        "White"
  57.     BorderTileForeground        "Black"
  58. #    DefaultBackground            "Black"
  59. #    DefaultForeground            "White"
  60.     IconBackground                "Black"        # optional window list
  61.     IconBorderColor            "Black"        # optional window list
  62.     IconForeground                "White"        # optional window list
  63.     IconManagerBackground    "White"        # optional window list
  64.     IconManagerForeground    "Black"        # optional window list
  65.     IconManagerHighlight        "Black"        # optional window list
  66.     MenuBackground                "White"
  67.     MenuForeground                "Black"
  68.     MenuShadowColor            "Black"
  69.     MenuTitleBackground        "Black"
  70.     MenuTitleForeground        "White"
  71.     TitleBackground            "Black"        # optional window list
  72.     TitleForeground            "White"        # optional window list
  73. }
  74.  
  75. #    Button bindings evolved from SunOS 3.x and later SunView bindings.
  76. #    They are NOTHING like mwm standard bindings.  They provide mappings
  77. #    for nearly everything.
  78.  
  79. #
  80. # Window Manager-Level Straight Mouse Button Mappings
  81. #
  82. #    I pass unmodified Button1 straight through, always, always, always
  83. #  (except on title bars, never, never, never)
  84. #
  85. #Button1        f.nop
  86. Button2        f.menu "Hosts Menu"
  87. Button3        f.menu "Screen Mgmt Menu"
  88. #    a 5 key mouse?  Good luck!
  89. Button4        f.nop
  90. Button5        f.nop
  91. #
  92. # Keyboard Bindings (Root & iconManager only)
  93. #
  94. # Modifiers        Abbreviation    |    Context    Abbreviation
  95. # ---------        ------------    |    -------    ------------
  96. #    control                c            |    frame                f
  97. #    lock                    l            |    icon                i
  98. #    meta                    m            |    iconmgr            m
  99. #    shift                    s            |    root                r
  100. #    mod1                    m1            |    title                t
  101. #    mod2                    m2            |    window            w
  102. #    mod3                    m3            |
  103. #    mod4                    m4            |
  104. #    mod5                    m5            |
  105. #
  106. #"Key"    =    Modifiers    :    Context    :    Function
  107. #-------------------------------------------------------------------
  108. "F1"        =                    :    root        :    f.menu "Hosts Menu"
  109. "F2"        =                    :    root        :    f.menu "Screen Mgmt Menu"
  110. "F3"        =                    :    root        :    f.menu "Screen Mgmt Menu"
  111. "F4"        =                    :    root        :    f.showiconmgr
  112. "F5"        =                    :    r|m        :    f.hideiconmgr
  113. "F6"        =                    :    root        :    f.beep
  114. "Left"    =                    :    root        :    f.circledown
  115. "Right"    =                    :    root        :    f.circleup
  116. "Up"        =                    :    root        :    f.showiconmgr
  117. "Down"    =                    :    r|m        :    f.hideiconmgr
  118. "Up"        =    m|s|c            :    root        :    f.menu "Hosts Menu"
  119. "Down"    =    m|s|c            :    root        :    f.menu "Screen Mgmt Menu"
  120.  
  121. #  BUTTON-KEY Mapping
  122. #
  123. #    shift & control are under-utilized simply because they are used
  124. #    so many other places in X.
  125. #
  126. # BUTTON =        KEY/S    :    CONTEXT    :    FUNCTION  
  127. #
  128. #    In a Window
  129. #
  130. #Button1 =        s        :    window    :    f.iconify
  131. Button1 =         m        :    window    :    f.destroy
  132. Button2 =        s        :    window    :    f.move
  133. Button3 =        s        :    window    :    f.resize
  134. Button3 =        m        :    window    :    f.menu "Screen Mgmt Menu"
  135. #
  136. #    On an Icon
  137. #
  138. Button1 =        s        :    icon        :    f.iconify
  139. Button1 =         m        :    icon        :    f.destroy
  140. Button2 =        s        :    icon        :    f.move
  141. Button3 =        s        :    icon        :    f.resize
  142. Button3 =        m        :    icon        :    f.menu "Screen Mgmt Menu"
  143. #
  144. #    On a Title Bar
  145. #
  146. Button1 =                :    title        :    f.raise
  147. Button1 =        s        :    title        :    f.iconify
  148. Button2 =                 :    title        :    f.move
  149. Button2 =        s        :    title        :    f.move
  150. Button3 =                :    title        :    f.lower
  151. Button3 =        s        :    title        :    f.resize
  152. Button3 =        m        :    title        :    f.menu "Screen Mgmt Menu"
  153. #
  154. #    On a Frame
  155. #
  156. Button1 =                :    frame        :    f.raise
  157. Button1 =        s        :    frame        :    f.iconify
  158. Button2 =                 :    frame        :    f.move
  159. Button2 =        s        :    frame        :    f.move
  160. Button3 =                :    frame        :    f.lower
  161. Button3 =        s        :    frame        :    f.resize
  162. Button3 =        m        :    frame        :    f.menu "Screen Mgmt Menu"
  163.  
  164. #    works with pre-R4 twm only
  165. #
  166. #TitleButton1    t.raise 
  167. #TitleButton2    t.move 
  168. #TitleButton3    t.lower
  169. #TitleButton4    t.nop
  170. #TitleButton5    t.nop
  171.  
  172. #LeftTitleButton "mushroom.xbm" = f.destroy
  173. #RightTitleButton "circle_down.xbm" = f.circledown
  174. #RightTitleButton "circle_up.xbm" = f.circleup
  175. #RightTitleButton "lower.xbm" = f.lower
  176. #RightTitleButton "raise.xbm" = f.raise
  177. #RightTitleButton "focus.xbm" = f.focus
  178. #RightTitleButton "unfocus.xbm" = f.unfocus
  179.  
  180.  
  181.  
  182. AutoRaise
  183. {
  184.     "dlgPopup"
  185.     "popupShell"
  186. }
  187.  
  188. #    The method of invoking xterms occasionally has to be modified to work
  189. #    well on different systems, due to broken xterms or remote shells.
  190.  
  191. Menu "Screen Mgmt Menu"
  192. {
  193.     "Screen Mgmt"            ("Yellow":"Blue")    f.title
  194.     "Other Systems"        f.menu "Hosts Menu"
  195.     "Terminal Windows"    f.menu "Terminal Menu"
  196.     "Screen Maint."        f.menu "Maintenance Menu"
  197.     "Special Ops"            f.menu "Special Ops Menu"
  198.     "Preferences"            f.menu "Preferences Menu"
  199.     "Misc. Stuff"            ("Orange":"Cyan")    f.title
  200.     "Calculator"            !"xcalc &"
  201.     "clipboard"                !"xclipboard -geometry 675x420+275+275 &"
  202.     "Mail"                    !"xterm -bg black -fg green -bd violet -cr orange -ms orange -name Mail -geometry 80x40+200-0 -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -e /usr/ucb/Mail &"
  203.     "Update twm"            f.twmrc
  204.     "Exit twm"                ("Red":"White")    f.quit
  205. }
  206.  
  207.  
  208.  
  209. Menu "Hosts Menu"
  210. {
  211.     "Other Systems"    ("red":"blue")    f.title
  212.     "System 1"    !"xterm -ut -sl 300 -ms Red -cr Red -bg LightSkyBlue -fg Black -geom 80x24+150+30 -T system1 -e telnet system1 &"
  213.     "System 2"    !"rsh system2 xterm -display `hostname`:0 -ut -cr OrangeRed -sl 300 -ms OrangeRed -bg BurlyWood1 -fg Yellow -sb -name system2 &"
  214. }
  215.  
  216.  
  217. Menu "Terminal Menu"
  218. {
  219.     "Various Terminals"    ("Tan":"White")    f.title
  220.     "Terminal Window"        !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  221.     "Nicer Terminal"        !"xterm -fn '-*-courier-bold-r-normal--*-180-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  222.     "Small Terminal"        !"xterm -fn '-*-courier-medium-r-normal--*-80-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  223.     "Tall Terminal"        ("Sienna":"Yellow")    !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x66 -ut &"
  224. }
  225.  
  226.  
  227. Menu "Maintenance Menu"
  228. {
  229.     "Window & Screen"        ("Black":"Red")    f.title
  230.     "Move"                    f.move
  231.     "Resize"                    f.resize
  232.     "Expose"                    f.raise
  233.     "Hide"                    f.lower
  234.     "Redraw Window"        f.winrefresh
  235.     "Refresh Screen"        f.refresh 
  236.     "Grab Keyboard"        f.focus
  237.     "Share Keyboard"        f.unfocus
  238.     "Icon <-> Window"        ("White":"Red")    f.iconify
  239. }
  240.  
  241.  
  242.  
  243. Menu "Special Ops Menu"
  244. {
  245.     "Special Ops"            ("black":"red")    f.title
  246.     "Kill window"            f.destroy
  247.     "Exit twm"                f.quit
  248.     "Update twm"            f.twmrc
  249.     "twm Version"            ("white":"blue")    f.version
  250. }
  251.  
  252.  
  253. Menu "Preferences Menu"
  254. {
  255.     "Preferences"        ("black":"red")    f.title
  256.     "Bell"                f.menu "Bell"
  257.     "Key Click"            f.menu "Key Click"
  258.     "Mouse"                f.menu "Mouser"
  259.     "Screen Saver"        ("white":"yellow")    f.menu "Screen Saver"
  260. }
  261.  
  262.  
  263. Menu "Bell"
  264. {
  265.     "Loud"                ("black":"red")    !"xset b 7 1000 100&"
  266.     "Normal"                !"xset b 3 1000 50&"
  267.     "Off"                    ("white":"red")    !"xset b off&"
  268.  
  269.  
  270. Menu "Key Click"
  271. {
  272.     "Loud"                ("black":"OrangeRed")    !"xset c 100&"
  273.     "Soft"                !"xset c on&"
  274.     "Off"                    ("white":"OrangeRed")    !"xset c off&"
  275. }
  276.  
  277.  
  278. Menu "Mouser"
  279. {
  280.     "Fast"                ("black":"Orange")    !"xset m 4 10&"
  281.     "Normal"                !"xset m 2 5&"
  282.     "Slow"                ("white":"orange")    !"xset m 1 1&"
  283.  
  284.  
  285. Menu "Screen Saver"
  286. {
  287.     "Default"            ("black":"yellow")    !"xset s on"
  288.     "Off"                    !"xset s off"
  289.     "Blank"                !"xset s blank; xset s 600 30"
  290.     "Pattern"            ("white":"yellow")    !"xset s noblank; xset s 600 30"
  291. }
  292.  
  293.  
  294. ForceIcons        # icons designated in Icons variable override client requests
  295. IconDirectory    "/usr/include/X11/bitmaps"
  296. Icons                # obtained from IconDirectory (above)
  297. {
  298.     "elm"                "rd_elm.xbm"
  299.     "xterm"            "terminal"
  300.     "Logout"            "mushroom.xbm"
  301.     "Riscman"        "Riscman"
  302.     "Main1"            "terminal"
  303.     "Main2"            "terminal"
  304.     "Tools1"            "terminal"
  305.     "Tools2"            "terminal"
  306.     "Games1"            "terminal"
  307.     "Games2"            "terminal"
  308. }
  309. UnknownIcon    "star"    # whenever icon name is unspeciied or unfound
  310.  
  311. NoHighlight                # don't highlight/unhighlight as pointer crosses it
  312. {
  313.     "xclock"
  314.     "builderProduct"
  315. }
  316.  
  317. NoTitle
  318. {
  319.     "xbiff"
  320.     "xclock"
  321.     "xlogout"
  322.     "xpostit"
  323. }
  324.  
  325. #    NOTE: some old features may have new options not shown
  326. #
  327. #    AutoRelativeResize                        # resize relative to ptr position
  328. #    ButtonIndent                1
  329. #    ClientBorderWidth                            # client overrides twm's BorderWidth
  330. #    ConstrainedMoveTime        400
  331. DecorateTransients
  332. #    FramePadding                2
  333. #    IconBorderWidth            2
  334. #    IconifyManagerFont        "9x15"
  335. #    IconManagerGeometry    "=400x250" 1
  336. IconRegion                "=1000x100+0-0" South West 10 10
  337. IconRegion                "=300x100+0+0" South West 10 10
  338. InterpolateMenuColors
  339. #    MaxWindowSize                "2000x2000"    # default is 30000x30000
  340. #    MoveDelta                    0    # number of pixels ptr moves before f.move works
  341. NoBackingStore
  342. #    NoCaseSensitive                # ignore case in icon manager sort
  343. #    NoDefaults                        # don't supply default titlebuttons and bindings
  344. #    NoGrabServer                    # during menu popups & opaque moves
  345. #    NoIconManagers
  346. NoMenuShadows                        # menu shadows broken in co-Xist 3.x !
  347. #    NoRaiseOnWarp
  348. #NoSaveUnders
  349. #    NoStackMode                        # ignore client stacking order requests
  350. OpaqueMove                            # instead of outline move - nicer but slower
  351. RestartPreviousState
  352. #    ShowIconManager                # when twm started
  353. SortIconManager                    # sort entries alphabetically
  354. #    TitleButtonBorderWidth    1
  355. #    TitlePadding                8
  356. UsePPosition                    "non-zero"
  357. #    WarpUnmapped
  358. #    XorValue                        2
  359. DefaultFunction            f.beep
  360. WindowFunction                f.deiconify
  361. #    
  362. #
  363. Cursors
  364. {
  365.     Frame                "top_left_arrow"
  366.     Title                "top_left_arrow"
  367.     Icon                "top_left_arrow"
  368.     IconMgr            "top_left_arrow"
  369.     Move                "fleur"
  370.     Resize            "fleur"
  371.     Menu                "sb_left_arrow"
  372.     Button            "hand2"
  373.     Wait                "watch"
  374.     Select            "dot"
  375.     Destroy            "pirate"
  376. }
  377. #
  378. #    DontIconifyByUnmapping
  379. #    {
  380. #    }
  381. #
  382. #    DontSqueezeTitle
  383. #    { # these are optional
  384. #    }
  385. #
  386. #    IconifyByUnmapping
  387. #    { # these are optional
  388. #    }
  389. #
  390. #    IconManagerBackground    Grey
  391. #    { # these are optional
  392. #    }
  393. #
  394. #    IconManagerDontShow
  395. #    { # these are optional
  396. #    }
  397. #
  398. #    IconManagerForeground    Black
  399. #    { # these are optional
  400. #    }
  401. #
  402. #    IconManagerHighlight        Black
  403. #    { # these are optional
  404. #    }
  405. #
  406. #    IconManagers                # named clients/classes get separate icom managers
  407. #    {
  408. #    "XTerm"    "=80x24"        6
  409. #    "elm"        "=200x100"    3
  410. #    }
  411. #
  412. #    IconManagerShow            # list of windows that should appear in icon manager
  413. #    {
  414. #    }
  415. #
  416. #    MakeTitle                    # windows getting titlebars when NoTitle set
  417. #    {
  418. #    }
  419. #
  420. #    NoTitleHighlight
  421. #    { # these are optional
  422. #    }
  423. #
  424. #    Pixmaps
  425. #    {
  426. #    TitleHighlight        "gray1"
  427. #    }
  428. #
  429. #    SaveColor
  430. #    {
  431. #    }
  432. #
  433. #    SqueezeTitle
  434. #    { # these are optional
  435. #        "Main"    left    0    0
  436. #        "Tools"    left    0    0
  437. #        "Games"    left    0    0
  438. #    }
  439. #
  440. #    StartIconified
  441. #    { # these are optional
  442. #    }
  443. #
  444. #    WindowRing
  445. #    {
  446. #    }
  447.